Polymorphic Equality - No Tags Required
نویسنده
چکیده
Polymorphic equality is a controversial language construct. While being convenient for the programmer, it has been argued that polymorphic equality (1) invites to violation of software engineering principles, (2) lays a serious burden on the language implementor, and (3) enforces a runtime overhead due to the necessity of tagging values at runtime. We show that neither (2) nor (3) are inherent to polymorphic equality by showing that one can compile programs with polymorphic equality into programs without polymorphic equality in such a way that there is no need for tagging or for runtime type analysis. Also, the translation is the identity on programs that do not use polymorphic equality. Experimental results indicate that even for programs that use polymorphic equality, the translation gives good results.
منابع مشابه
Entailment with Conditional Equality Constraints ( Extended
Equality constraints (unification constraints) have widespread use in program analysis, most notably in static polymorphic type systems. Conditional equality constraints extend equality constraints with a weak form of subtyping to allow for more accurate analyses. We give a complete complexity characterization of the various entailment problems for conditional equality constraints and for a nat...
متن کاملEntailment with Conditional Equality Constraints
Equality constraints (unification constraints) have widespread use in program analysis, most notably in static polymorphic type systems. Conditional equality constraints extend equality constraints with a weak form of subtyping to allow for more accurate analyses. We give a complete complexity characterization of the various entailment problems for conditional equality constraints. Additionally...
متن کاملDevelopment of 30 Novel Polymorphic Expressed Sequence Tags (EST)-Derived Microsatellite Markers for the Miiuy Croaker, Miichthys miiuy
Expressed sequence tags (ESTs) can be used to identify microsatellite markers. We developed 30 polymorphic microsatellite markers from 5053 ESTs of the Miichthys miiuy. Out of 123 EST derived microsatellites for which PCR primers were designed, 30 loci were polymorphic in 30 individuals from a single natural population with 2-13 alleles per locus. The observed and expected heterozygosities were...
متن کاملAn overview of molecular marker methods for plants
The development and use of molecular markers for the detection and exploitation of DNA polymorphism is one of the most significant developments in the field of molecular genetics. The presence of various types of molecular markers, and differences in their principles, methodologies, and applications require careful consideration in choosing one or more of such methods. No molecular markers are ...
متن کاملSixteen Polymorphic Simple Sequence Repeat Markers from Expressed Sequence Tags of the Chinese Mitten Crab Eriocheir sinensis
The Chinese mitten crab (Eriocheir sinensis) is an economically important aquaculture species in China. In this study, we developed and evaluated simple sequence repeat markers from expressed sequence tags of E. sinensis. Among the 40 wild E. sinensis individuals tested, 16 loci were polymorphic. The number of alleles per locus ranged from two to ten. The observed heterozygosity ranged from 0.0...
متن کامل